<!-- templates/index.html -->
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" />
    <title>VNC 连接器</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 40px; }
        .form-group { margin: 15px 0; }
        label { display: inline-block; width: 100px; }
        input[type="text"], input[type="password"] { padding: 8px; width: 200px; }
        button { padding: 10px 20px; background: #007BFF; color: white; border: none; cursor: pointer; }
        button:hover { background: #0056b3; }
    </style>
</head>
<body>
    <h2>灵墨系统连接 - 重启之时！</h2>
    <form action="/connect" method="GET">
        <div class="form-group">
            <label for="ip">IP 地址</label>
            <input type="text" name="ip" id="ip" required placeholder="192.168.1.100" />
        </div>
        <div class="form-group">
            <label for="port">端口</label>
            <input type="text" name="port" id="port" value="5000" placeholder="5000" />
        </div>
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" name="username" id="username" required />
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" name="password" id="password" required />
        </div>
        <button type="submit">连接</button>
    </form>
</body>
</html>